package com.mapper;

import javafx.concurrent.Worker;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
* @author HP
* @description 针对表【tb_worker】的数据库操作Mapper
* @createDate 2024-11-14 19:30:55
* @Entity com.pojo.Worker
*/
public interface WorkerMapper {
    @Select("select * from tb_worker where id = #{id}")
    Worker selectWorker(int id);
    @Insert("insert into tb_worker(name,age,sex,worker_id)"
            +"values(#{name},#{age},#{sex},#{worker_idd})")
    int insertWorker(Worker worker);

}
